<%@include file="top.jsp"%>

<jsp:useBean id="fullnews" type="mvc.FullNews" scope="session" />
<%
NewsPost a = fullnews.getPost();
%>	
<center>	
	<table width="560" border="0">
	    <tr>
	      <td height="16" align="left"><h2><%=a.getTopic()%></h2></td>
	    </tr>
	  </table>
	  <table width="560" border="0">
	    <tr>
	      <td>
	      	<br><br><%=a.getText()%>
	      </td>
	    </tr>
		<tr>
			<td><br>Posted by <a href="mailto:<%=a.getEmail()%>"><%=a.getName()%></a> on <%=a.getDate()%>
			</td>
		</tr>
</table>
<table width="560" border="0">
<tr><td><hr style="border:dashed #676767; border-width:1px 0 0 0; height:1;"></td></tr>	
</table>
<table width="520" border="0">
<tr>
	<td align="left" width="90">	
		<% if(fullnews.isPrev()) { %> 
		<a href="/servlet/mvc.Servl?state=news&fullnews=<%=fullnews.getPrevs()%>" onfocus="this.blur()"><b>Prev. news</b></a>
		<% } %>
	</td>
	<td align="center">			
		<a href="/servlet/mvc.Servl?state=news" onfocus="this.blur()"><b>Back to front page</b></a>
	</td>
	<td align="right" width="90">	
		<%
		if(fullnews.isNext()) {
		%>
		<a href="/servlet/mvc.Servl?state=news&fullnews=<%=fullnews.getNexts()%>" onfocus="this.blur()"><b>Next news</b></a>
		<% } %>
	</td>	
</tr>
</table>
</center>
<%@include file="bottom.jsp"%>